Ext.define('DDMS.controller.Setting', {
    extend: 'Ext.app.Controller',
    config: {
        refs: {
            settingLeftCmp: '#settingLeft'
        },

        control: {
        	settingLeftCmp: {
        	  itemsingletap: 'settingLeftCmpTap'
        	}
        }
    },
    settingLeftCmpTap: function(obj, index, target, record, e, eOpts) {
    	var settingRight=Ext.getCmp('settingRight');
    	var page=Ext.getCmp(record.get('id'));
    	settingRight.setActiveItem(page);
    	Ext.getCmp('setting-right-toolbar').setTitle(record.get('name'));
//    	settingRight.animateActiveItem( page, {
//	        type: 'slide',
//	        direction: 'left',
//	        duration: 250
//	    });
    }
});